import request from '@/utils/request'

export function loginByAcctno(params) {
  return request({
    url: '/openApi/student/loginByAcctno',
    method: 'get',
    params: params
  })
}

export function studentFindStudentById(params) {
  return request({
    url: '/studentApi/student/findStudentById',
    method: 'get',
    params: params
  })
}

export function studentUpdateStudentById(data) {
  return request({
    url: '/studentApi/student/updateStudentById',
    method: 'put',
    data: data
  })
}

export function loginByOpenid(params) {
  return request({
    url: '/openApi/student/loginByOpenid',
    method: 'get',
    params: params
  })
}

export function getOpenid(params) {
  return request({
    url: '/studentApi/student/getOpenid',
    method: 'get',
    params: params
  })
}

export function lawyerFindStudentById(params) {
  return request({
    url: '/lawyerApi/student/findStudentById',
    method: 'get',
    params: params
  })
}

export function studentBindWechatById(data) {
  return request({
    url: '/studentApi/student/bindWechatById',
    method: 'put',
    data: data
  })
}